package com.jz.netthings.application.providerAllot.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-03-13
 */
public class ProviderAllot implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 分配时间
     */
    @TableField("allotDate")
    private Date allotDate;
    /**
     * 浆员
     */
    @TableField("providerNo")
    private String providerNo;
    @TableField(exist = false)
    private String providerNoName;
    @TableField(exist = false)
    private String cardId;
    /**
     * 登记号
     */
    @TableField("registerNo")
    private String registerNo;
    /**
     * 机器号
     */
    @TableField("machineNo")
    private String machineNo;
    @TableField(exist = false)
    private String machineNoName;
    /**
     * 分配方式
     */
    @TableField("allotType")
    private String allotType;
    @TableField(exist = false)
    private String allotTypeName;
    /**
     * 创建人
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    @TableField("modifyTime")
    private  Date modifyTime;
    @TableField("synDate")
    private  Date  synDate;

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Date getSynDate() {
        return synDate;
    }

    public void setSynDate(Date synDate) {
        this.synDate = synDate;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getAllotTypeName() {
        return allotTypeName;
    }

    public void setAllotTypeName(String allotTypeName) {
        this.allotTypeName = allotTypeName;
    }

    public String getProviderNoName() {
        return providerNoName;
    }

    public void setProviderNoName(String providerNoName) {
        this.providerNoName = providerNoName;
    }

    public String getMachineNoName() {
        return machineNoName;
    }

    public void setMachineNoName(String machineNoName) {
        this.machineNoName = machineNoName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
   @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getAllotDate() {
        return allotDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setAllotDate(Date allotDate) {
        this.allotDate = allotDate;
    }

    public String getProviderNo() {
        return providerNo;
    }

    public void setProviderNo(String providerNo) {
        this.providerNo = providerNo;
    }

    public String getRegisterNo() {
        return registerNo;
    }

    public void setRegisterNo(String registerNo) {
        this.registerNo = registerNo;
    }

    public String getMachineNo() {
        return machineNo;
    }

    public void setMachineNo(String machineNo) {
        this.machineNo = machineNo;
    }

    public String getAllotType() {
        return allotType;
    }

    public void setAllotType(String allotType) {
        this.allotType = allotType;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Override
    public String toString() {
        return "ProviderAllot{" +
        "id=" + id +
        ", allotDate=" + allotDate +
        ", providerNo=" + providerNo +
        ", registerNo=" + registerNo +
        ", machineNo=" + machineNo +
        ", allotType=" + allotType +
        ", creator=" + creator +
        "}";
    }
}
